import random
random_numbers=[random.randint(0,9) for _ in range(100)]
average=sum(random_numbers)/len(random_numbers)
print("随机整数列表",random_numbers)
print("平均值",average)
for x in range(10):
    print("{}的个数为{}".format(x,random_numbers.count(x)))